import { ProductInspectionDetailsComponent } from './product-inspection/product-inspection-details/product-inspection-details.component';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { InspectionComponent } from './inspection.component';
import { PurchaseInspectionComponent } from './purchase-inspection/purchase-inspection.component';
import { OutInspectionComponent } from './out-inspection/out-inspection.component';
import { InspectionItemComponent } from './inspection-item/inspection-item.component';
import product from 'src/assets/i18n/zh-CN/product';
import { ProductInspectionComponent } from './product-inspection/product-inspection.component';
import { AddProductInspectionComponent } from './product-inspection/add-product-inspection/add-product-inspection.component';

const routes: Routes = [
  {
    path:'',
    component:InspectionComponent,
    children:[
      {
        path: 'purchase-inspection',
        component:PurchaseInspectionComponent
      },
      {
        path:'out-inspection',
        component:OutInspectionComponent
      },
      {
        path:'inspection-item',
        component:InspectionItemComponent
      },
      {
        path:'product-inspection',
        component:ProductInspectionComponent
      },
      {
        path:'product-inspection/add',
        component:AddProductInspectionComponent
      }
    ]
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class InspectionRoutingModule {

}
